<%@ page import="org.springframework.context.ApplicationContext" %><%--
  Created by IntelliJ IDEA.
  User: HelloKitty
  Date: 2021/5/25
  Time: 18:07
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" pageEncoding="UTF-8" %>
<html>
<head>
    <%-- 用以说明主页制作所使用的文字以及语言 --%>
    <meta http-equiv="Content-Type" content="text/html" charset='UTF-8"'>
    <meta http-equiv="Content-Language" content="zh-CN">
    <title>首页</title>
    <%-- 获取项目路径 --%>
    <% ServletContext servletContext = request.getSession().getServletContext();
        servletContext.setAttribute("projectClassPath",request.getContextPath());%>
</head>
<body>
<a href="${projectClassPath}/handle01?i=0">test01-ExceptionHandlerExceptionResolver的：@ExceptionHandler注解的使用</a><br/>
<a href="${projectClassPath}/handle02?username=abcde">test02-ResponseStatusExceptionResolver的：@ResponseStatus注解的使用</a><br/>
<a href="${projectClassPath}/handle03">test03-默认异常解析器DefaultHandlerExceptionResolver</a><br/>
<a href="${projectClassPath}/handle04">test04-SimpleMappingExceptionResolver通过配置</a><br/>
</body>
</html>
